
CFLAGS = -O2 -Wall -g # -I/usr/inet6/include
CC	= g++
LD	= $(CC)

AFOBJS	 = inet.o inet6.o  af.o 
VARIA	 =  sockets.o
OBJS = $(AFOBJS) $(VARIA)

PROGS	:= iflist

%.o:		%.c config.h net-features.h $<
		$(CC) $(CFLAGS) -c $<
		
iflist:	${OBJS} interface.o 
		$(CC) -o iflist interface.o ${OBJS} -ltinyxml -L ../tinyxml

		
all:	$(PROGS)

clean:
		rm -f $(PROGS) *.o 


